//
//  ViewController.m
//  iOSZ1
//
//  Created by MAC on 15-11-2.
//  Copyright (c) 2015年 mm. All rights reserved.
//

#import "ViewController.h"
//#import <QuartzCore/QuaetzCore.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    UILabel * l = [[UILabel alloc] initWithFrame:CGRectMake(100, 200, 100, 44)];
    l.text = @"你好，世界!";
    l.textColor = [UIColor greenColor];
    [self.view addSubview:l];
    
    //UIView * view = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    for (int i = 0; i<5; i++) {
        UIView * v = [[UIView alloc]initWithFrame:CGRectMake(20+i*50+i*8 , 100, 50, 50)];
        v.backgroundColor = [UIColor yellowColor];
        
        //v.layer.cornerRadius = 50/4;
        //v.clipsToBounds = YES;
        //v.layer.bordeWith = 2;
        
        [self.view addSubview:v];
    }
    
    for (int j = 0; j<4; j++) {
        UIView * linel = [[UIView alloc]initWithFrame:CGRectMake(50+j*100, 50, 3, 200)];
        linel.backgroundColor = [UIColor blackColor];
        for (int k=0; k<3; k++) {
            UIView * linel1 = [[UIView alloc]initWithFrame:CGRectMake(50, 49+k*100, 200, 3)];
            linel1.backgroundColor = [UIColor blackColor];
            [self.view addSubview:linel1];
        }
        
        [self.view addSubview:linel];
    }
    
    
    
    
    
    
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
